package top.kaoshanji.p2ch10a;

/**
 * 代码清单-p2ch10a-318页a：“终止器守卫者（finalizer guardian）”模式的示例
 * author kaoshanji
 * ^_^
 * create time 2025/2/2 18:30
 */
public class WithFinalizer {

    private final Object guardian = new Object() {

        @Override
        protected void finalize() throws Throwable {
            // WithFinalizer类的对象终止实现
            super.finalize();
        }
    };


}
